import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/quality/disqualificationDispose/listForPurchase',
    method: 'post',
    data: data
  })
}
export function getSourceCode(data) {
  return request({
    url: '/purchase/order/getSourceCode',
    method: 'post',
    data: data
  })
}
export function ticketList(data) {
  return request({
    url: '/quality/disqualificationDispose/list',
    method: 'post',
    data: data
  })
}
export function disqualificationList(data) {
  return request({
    url: '/quality/product/disqualification/list',
    method: 'post',
    data: data
  })
}
export function addOrUpdate(data) {
  return request({
    url: '/quality/disqualificationDispose/addOrEdit',
    method: 'post',
    data: data
  })
}
export function disqualificationAddOrUpdate(data) {
  return request({
    url: '/quality/product/disqualification/addOrEdit',
    method: 'post',
    data: data
  })
}
export function remove(data) {
  return request({
    url: '/quality/disqualificationDispose/delete',
    method: 'post',
    data: { deleteIds: data }
  })
}
export function disqualificationRemove(data) {
  return request({
    url: '/quality/product/disqualification/delete',
    method: 'post',
    data: { deleteIds: data }
  })
}
export function getInfo(data) {
  return request({
    url: '/quality/disqualificationDispose/' + data,
    method: 'get'
  })
}
export function disqualificationGetInfo(data) {
  return request({
    url: '/quality/product/disqualification/' + data,
    method: 'get'
  })
}
export function getEngineeringRequirements(data) {
  return request({
    url: '/engineering/requirement/getEngineeringRequirementsMaterialByTaskId',
    method: 'post',
    data: data
  })
}
// export function getEngineeringRequirements(data) {
//   return request({
//     url: '/engineering/requirement/getEngineeringRequirementsMaterialByTaskId/' + data,
//     method: 'get'
//   })
// }
